package http

import (
	"gitee.com/xuyiping_admin/pkg/di"
	"kpt-dtm/config"
	"net/http"
)

type Service interface {
	doRequest(req *http.Request) ([]byte, error)
	DoGet(url string) ([]byte, error)
	DoPost(url string, body interface{}) ([]byte, error)
}

var Module = di.Provide(NewService)

func NewService(cfg *config.AppConfig) *ClientService {
	return NewClientService()
}
